Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specs-go/config: add Core Scheduling support #1114

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kailun-qin
Copy link
Contributor

Linux kernel 5.14 adds the support for Core Scheduling.

This allows setting and copying core scheduling 'task cookies' between
the container process and the threads (PID), processes (TGID), and
process groups (PGID), which helps define groups of tasks that can be
co-scheduled on the same core. These groups can be specified either for
security usecases or for performance usecases.

#1113

Signed-off-by: Kailun Qin [email protected]

Linux kernel 5.14 adds the support for Core Scheduling.

This allows setting and copying core scheduling 'task cookies' between
the container process and the threads (PID), processes (TGID), and
process groups (PGID), which helps define groups of tasks that can be
co-scheduled on the same core. These groups can be specified either for
security usecases or for performance usecases.

opencontainers#1113

Signed-off-by: Kailun Qin <[email protected]>
@kailun-qin
Copy link
Contributor Author

Dear spec maintainers, would you please kindly take a look at the proposal when you get a chance? We do have some specific usage and asks here: #1113 (comment).
Many thanks!

type LinuxCoreSchedPids struct {
// Pids are the threads.
Pids []int `json:"pids,omitempty" platform:"linux"`
// Tgids are the processes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean thread groups?

// LinuxCoreSchedPids defines the PIDs that Core Scheduling supports for setting and copying 'task cookies'.
// 'PID == 0' implies the current process.
type LinuxCoreSchedPids struct {
// Pids are the threads.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean processes?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And in which PIDNS?

}

// LinuxCoreSchedPids defines the PIDs that Core Scheduling supports for setting and copying 'task cookies'.
// 'PID == 0' implies the current process.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is "current?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants